#  TODO 字典遍历
dict1 = dict2 = {'name': 'hello', 'age': 18, 'height': 188}
# TODO 遍历键 keys 或者是默认的keys(不写)
for key in dict1.keys():
    print(key)

for key in dict1:
    print(key)      # 第二种

print("----" * 10)

# TODO 遍历值 values
for value in dict1.values():
    print(value)

print("----" * 10)

# TODO 遍历键值对  items
for key,value in dict1.items():
    print(key, value)